<template>
  <div>
    <div class="topic-container" >
      <div class="topicCard">
        <p class="name">{{ topic.name }}</p>
        <div class="introduce">简介：{{ topic.introduce }}</div>
        <el-row class="last">
          <el-col :span="12">
            <el-row type="flex" justify="start" style="width: 400px">
              <div class="topic-time">创建时间：{{topic.createTime}}</div>
            </el-row>
          </el-col>
          <el-col :span="12">
            <el-row type="flex" justify="end" class="bottom">
              <slot name="operation1"></slot>
              <slot name="operation2"></slot>
            </el-row>
          </el-col>
        </el-row>
      </div>
    </div>
  </div>


</template>
<script>
export default {
  name:"TopicContainer",
  props: {
    topic: {
      // required: true,
    },
  },
  data(){
    return{
    }
  },
  created() {
  },
  methods:{
  }
}
</script>
<style lang="scss">
.topicCard{
  //background-color: #0a76a4;
  width: 100%;
  height: 250px;
  //width: 900px;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 5px;
  padding-bottom: 0;
}
.topic-container .topicCard{
  //border-radius: 20px 20px 20px 20px;
  position: relative;
  display: flex;
  //justify-content: center;
  //align-items: center;
  flex-direction: column;
  cursor: pointer;
  transition: 0.1s;
}
.topic-container{
  width: 90%;
  //height: 200px;
  margin-top: 5px;
  //margin-left: 5px;
  padding-top: 5px;
  //margin-left: 300px;
  position: relative;
  display: flex;
  //justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  background: linear-gradient(135deg,rgb(57,167,176),rgb(56,183,145));
  border-radius: 20px 20px 20px 20px;
}
.topic-container:hover{
  transform: scale(1.01);
}
body{
  width: 100%;
  align-items: center;
}
p{
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1px;
}
.introduce{
  margin-top: 20px;
}
.topic-time{
  //width: 200px ;
  margin-top: 10px;
  //margin-right: 930px;
  font-weight: 600;
  color: #2F4F2F;
}
.last{
  width: 100%;
  position: absolute;
  bottom: 0;
}
</style>
